<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        // document.write("<div style='color: rgba(, , , );width: 200px;height: 200px;'></div>")
        var num1 = parseInt(Math.random()*255);
        var num2 = parseInt(Math.random()*255);
        var num3 = parseInt(Math.random()*255);
        // var num4 = parseInt(Math.random()+1);
        function sj_color(){            
            console.log(num1+","+num2+","+num3+".1");
            // return "rgba(num1+","+num2+","+num3+.1)";
        }
        sj_color();
        // sj_color(rgba());
    </script>

















</body>
</html>